using Admin2025.Domain.Events;

namespace Admin2025.Domain.Events;

/// <summary>
/// 用户密码修改事件
/// </summary>
public class UserPasswordChangedEvent : IDomainEvent
{
    public Guid EventId { get; }
    public DateTime OccurredOn { get; }
    
    public Guid UserId { get; }
    public string Username { get; }
    public Guid ChangedBy { get; }

    public UserPasswordChangedEvent(Guid userId, string username, Guid changedBy)
    {
        EventId = Guid.NewGuid();
        OccurredOn = DateTime.UtcNow;
        UserId = userId;
        Username = username;
        ChangedBy = changedBy;
    }
}
